package net.xiduth.game.player.utils;

import java.util.TimerTask;

import net.xiduth.cores.CoresManager;
import net.xiduth.game.player.Player;

public class Timer {
 	
	private transient Player player;
	
	public void startTimer() {
	CoresManager.fastExecutor.schedule(new TimerTask() {
			int timer = 180;
			@Override
			public void run() {
				if (timer == 1) {
					timer = 160;
					player.getPackets().sendGameMessage("The timer has reached 160 seconds, meaning 20 seconds has past, is this what you're looking for?");
				}
				if (timer > 0) {
					timer--;
				}
			}
		}, 0L, 1000L);
	}
}